<template>
  <view class="rescue-record-page">
    <!-- 救援记录列表 -->
    <view class="record-list">
      <view 
        class="record-item" 
        v-for="(item, index) in records" 
        :key="index"
      >
        <text class="record-time">{{ item.time }}</text>
        <text class="record-address">{{ item.address }}</text>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      // 救援记录数据（可从接口获取）
      records: [
        { time: "2022-10-10 11:09", address: "洛阳市道北路32号XXX小区" },
        { time: "2022-10-10 11:09", address: "洛阳市道北路32号XXX小区" },
        { time: "2022-10-10 11:09", address: "洛阳市道北路32号XXX小区" },
        { time: "2022-10-10 11:09", address: "洛阳市道北路32号XXX小区" },
      ],
    };
  },
  methods: {
    // 返回上一页
    goBack() {
      uni.navigateBack();
    },
  },
};
</script>

<style scoped>
/* 页面容器 */
.rescue-record-page {
  background-color: #fff;
  min-height: 100vh;
}

/* 顶部导航栏 */
.navbar {
  display: flex;
  align-items: center;
  height: 80rpx;
  padding: 0 20rpx;
  border-bottom: 1px solid #f5f5f5;
}

.back {
  width: 60rpx;
  height: 60rpx;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-icon {
  width: 30rpx;
  height: 30rpx;
}

.title {
  font-size: 32rpx;
  font-weight: bold;
  margin-left: 20rpx;
}

/* 救援记录列表 */
.record-list {
  padding: 20rpx;
}

/* 救援记录项 */
.record-item {
  border-bottom: 2px solid #F0F0F0;
  padding: 20rpx 0;
}

.record-time {
  font-size: 28rpx;
  color: #333;
  margin-bottom: 10rpx;
  display: block;
}

.record-address {
  font-size: 26rpx;
  color: #666;
}
</style>
